package com.sp2.dev.test.listener.listenertest;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-10
 * Time: 下午2:42
 * To change this template use File | Settings | File Templates.
 */
public abstract class Target {

    protected String name;

    protected List<Look> lookList = new ArrayList<Look>();

    public void  add(Look look){
        System.out.println(look.getName()+"  add ");
        lookList.add(look);
    }

    public void delete (Look look){
        System.out.println(look.getName()+" delete ");
        lookList.remove(look);
    }


    public abstract void noifyLook(String name,String talkMessage);



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
